// 分组消息合并
<template>
<p>合并相同内容的消息。</p>
<p>设置 <code>grouping</code> 为 true，内容相同的 <code>message</code> 将被合并。</p>
  <el-button :plain="true" @click="open">Show message</el-button>
</template>

<script lang="ts" setup>
import { ElMessage } from 'element-plus'

const open = () => {
  ElMessage({
    message: 'This is a message.',
    grouping: true,
    type: 'success',
  })
}
</script>

<style scoped>
@import '../../assets/elementPlusDemo.css'
</style>